 <?php 



$path = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."play".DIRECTORY_SEPARATOR; 
$to_path = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."aaa.zip";

$zip = new ZipArchive;
print_r($path);
print_r($to_path);
print_r($zip);

if ($res = $zip->open($to_path)){
	$zip->addFile($path);
	$zip->close();
	echo 'ok';
}else{
	echo "error";
};

print_r($res);

?>

